package com.lucenten.collect.gnss.dao.impl;

import cn.quevo.core.beetlsql.BasicDao;
import org.springframework.stereotype.Repository;

import com.lucenten.collect.gnss.dao.SatelliteStationDao;
import com.lucenten.collect.gnss.entity.SatelliteStation;
import com.lucenten.collect.gnss.entity.query.SatelliteStationQuery;

import java.util.List;

/**
 * 卫星台站信息 Dao接口实现
 *
 * @author July july_sky@foxmail.com
 * @version 1.0
 * @date 2019/04/26 22:44:38
 * @Copyright 湘豫（北京）科技有限公司版权所有.All Rights Reserved.
 */
@Repository("satelliteStationDao")
public class SatelliteStationDaoImpl extends BasicDao<SatelliteStation,SatelliteStationQuery> implements SatelliteStationDao {

    @Override
    public String getSqlPre() {
        return "collect.gnss.satelliteStation.";
    }

    @Override
    public List<SatelliteStation> getSatelliteStationList(SatelliteStationQuery satelliteStationQuery) {
        return super.getBeetlSqlFactory().selectList(getSqlId("getList"),SatelliteStation.class, satelliteStationQuery);
    }

    @Override
    public Integer checkExists(SatelliteStationQuery satelliteStationQuery) {
        return super.getBeetlSqlFactory().getObject(getSqlId("checkExists"),satelliteStationQuery,Integer.class);
    }
}
